﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="CRM.WEB.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>
        Warranty Service Management</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <script src="Static/boot.js" type="text/javascript"></script>
    <link href="Static/demo.css" rel="stylesheet" type="text/css" />
    <link href="Static/miniui/themes/blue/skin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            margin: 0;
            padding: 0;
            border: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        .header
        {
            background: url(Static/img/header.gif) repeat-x 0 -1px;
        }
        .Note
        {
            background: url(Static/img/Notes_Large.png) no-repeat;
            width: 32px;
            height: 32px;
        }
        .Reports
        {
            background: url(Static/img/Reports_Large.png) no-repeat;
            width: 32px;
            height: 32px;
        }

        .header div
        {
            font-family: 'Trebuchet MS' ,Arial,sans-serif;
            font-size: 25px;
            line-height: 30px;
            padding-left: 10px;
            font-weight: bold;
            color: #333;
        }
        body .header .topNav
        {
            position: absolute;
            right: 8px;
            top: 10px;
            font-size: 12px;
            line-height: 25px;
        }
        .header .topNav a
        {
            text-decoration: none;
            color: #222;
            font-weight: normal;
            font-size: 12px;
            line-height: 25px;
            margin-left: 3px;
            margin-right: 3px;
        }
        .header .topNav a:hover
        {
            text-decoration: underline;
            color: Blue;
        }
    </style>
</head>
<body>
    <div id="layout1" class="mini-layout" style="width: 100%; height: 100%;">
        <div class="header" region="north" height="40" showsplit="false" showheader="false">
            <img src="/Static/img/logo.png" style="height: 30px;margin: 0;padding: 0" />
            <span style="margin: 0; padding: 0 0 0 0; cursor: default; font-family: 'Trebuchet MS',Arial,sans-serif;font-size: 24px">Warranty Service Management</span>
            <div class="topNav">
                <span>User ID:
                    <%=fullName%></span>| <a href="Logout.aspx">[Logout]</a></span>
            </div>
        </div>
        <div title="south" region="south" showsplit="false" showheader="false" height="30">
            <div style="line-height: 28px; text-align: center; cursor: default">
                Copyright ©
                <%=System.Configuration.ConfigurationManager.AppSettings["compName"]%>
            </div>
        </div>
        <div showheader="false" region="west" width="180" maxwidth="250" minwidth="100">
            <!--OutlookMenu-->
            <div id="leftTree" class="mini-outlookmenu" url="
               ConfigData/leftmenu.txt" onitemselect="onItemSelect" idfield="id" parentfield="pid"
                textfield="text" borderstyle="border:0">
            </div>
        </div>
        <div title="center" region="center" bodystyle="overflow:hidden;">
            <iframe id="mainframe" frameborder="0" name="main" style="width: 100%; height: 100%;"
                border="0"></iframe>
        </div>
    </div>
    <script type="text/javascript">
        mini.parse();

        //init iframe src
        var iframe = document.getElementById("mainframe");
        iframe.src = "Ali/OrderList.html";
        function onItemSelect(e) {
            var item = e.item;
            iframe.src = item.url;
        }

        //        //自动选中id
        //        var tree = mini.get("leftTree");
        //
        //        tree.selectNode("addRight");
    </script>
</body>
</html>